@if($orderPay->isNotEmpty())
    @foreach($orderPay as $v)
        <li class="order-item order-item-138033167">
            <div class="order-header clearfix">订单号：{{$v->pay_sn}} <span class="pull-right">@if(!$v->paid_at)
           待付款 @elseif($v->refund_status==\App\OrderPay::REFUND_STATUS_APPLIED) {{\App\OrderPay::$refundStatusMap[$v->refund_status]}} @else {{\App\OrderPay::$shipStatusMap[$v->ship_status]}} @endif</span>
            </div>
            @foreach($v->goods as $item)
                <div class="goods-item">
                    <div class="item-info">
                        <a href="{{route('order.pay',['orderId'=>$v->order_pay_id])}}" class="item-image">
                            <img src="{{$item->good_object['goods_thumbnail']}}">
                        </a>
                        <a href="{{route('order.pay',['orderId'=>$v->order_pay_id])}}"
                           class="item-title">{{$item->good_object['goods_name']}}</a>
                        <span class="item-price">￥{{$item->good_price}}</span>
                        <div class="item-sku-quantity"><span class="props"></span> <span
                                    class="quantity">× {{$item->good_object['buy_num']}}</span></div>
                    </div>
                </div>
            @endforeach
            <div class="order-footer"> 总价：<span class="c-orange">￥{{$v->pay_price}}</span>
                <div class="opt-btn pull-right" style="margin-top: -6px;">
                    @can('candleOrder',$v)
                        <a class="btn pre-btn  special" href="javascript:void(0)"
                           onclick="orderCancel({{$v->order_pay_id}})">取消订单</a>
                        <a class="btn pre-btn" href="{{route('order.pay',['orderId'=>$v->order_pay_id])}}">去付款</a>
                    @endcan
                    @can('refundOrder',$v)
                        <a class="btn pre-btn delivered  special" onclick="applyRefund({{$v->order_pay_id}})"
                           data-id="{{$v->order_pay_id}}" href="javascript:void(0)">退款</a>
                    @endcan
                    @can('sureOrder',$v)
                        <a class="btn pre-btn delivered" onclick="delivered({{$v->order_pay_id}})"
                           data-id="{{$v->order_pay_id}}" href="javascript:void(0)">确认收货</a>
                            <a class="btn pre-btn delivered  special" data-id="{{$v->order_pay_id}}"
                               href="/my/order/express?order_id={{$v->order_pay_id}}">查看物流状态</a>
                    @endcan


                </div>
            </div>
        </li>
    @endforeach
@endif